package com.alphaking.pojo.common;

import java.io.Serializable;

public class SearchBean implements Serializable{
	private String key;
	private String operator;
	private String value;
	private Integer priority;
	public String getOperator() {
		return operator;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}
	public String getKey() {
		return key;
	}
	public void setKey(String key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public Integer getPriority() {
		return priority;
	}
	public void setPriority(Integer priority) {
		this.priority = priority;
	}
	
	
	@Override
	public String toString() {
		return "SearchBean [key=" + key + ", operator=" + operator + ", value="
				+ value + ", priority=" + priority + "]";
	}
	public SearchBean(String key, String operator, String value,
			Integer priority) {
		super();
		this.key = key;
		this.operator = operator;
		this.value = value;
		this.priority = priority;
	}
	public SearchBean(){
		
	}
	
	public final static String OPERATOR_IN = "in";
	public final static String OPERATOR_LIKE = "like";
	public final static String OPERATOR_SORT = "sort";
	public final static String OPERATOR_IS_NULL = "is_null";
	public final static String OPERATOR_EQ = "=";
	public final static String OPERATOR_NE = "!=";
	public final static String OPERATOR_LT = "<";
	public final static String OPERATOR_GT = ">";
	public final static String OPERATOR_LE = "<=";
	public final static String OPERATOR_GE = ">=";
}
